<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> <?php
 $name = "cfg_sitetitle"; if(empty($name)){ echo ""; }else{ echo htmlspecialchars_decode(C($name)); } ?> </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="description" content=" <?php
 $name = "cfg_sitedescription"; if(empty($name)){ echo ""; }else{ echo htmlspecialchars_decode(C($name)); } ?> ">
<meta name="Keywords" content=" <?php
 $name = "cfg_sitekeywords"; if(empty($name)){ echo ""; }else{ echo htmlspecialchars_decode(C($name)); } ?> ">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/mui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/mui.picker.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/mui.poppicker.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/newpay-bb7fcb5546.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/feiqi-ee5401a8e6.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/pay-2b02ca7987.css">
<style>
	.mui-input-group .mui-input-row, .mui-input-row{
	    height: 45px;
	}
	.marea{padding-right: 15px;}
	.regfrm label {
	    padding: 14px 15px;
	}
	.marea label {
	    padding: 14px 0;
	}
	.mui-input-row label~input, .mui-input-row label~select, .mui-input-row label~textarea {
	    height: 45px;
	    text-align: right;
	}
	.mui-input-row:last-child:after{
    height: 0;
	}
	@media screen and (max-width: 321px){
		.marea label {
		    font-size: 14px;
		    width: 24%;
		    padding-top: 15px;
		}
		.marea label~input {
		    width: 76%;
		}
		.regfrm .mui-input-row label {
		    width: 24%;
		    white-space: nowrap;
		    font-size: 14px;
		    padding: 15px 15px;
		}
		.regfrm .mui-input-row input {
		    font-size: 14px;
		    width: 74%;
		}			
	}
	@media screen and (max-width: 350px){
		.marea label~input {
	        font-size: 13px;			   
		}
	}
	.seltarr {
	    display: block;
	    position: absolute;
	    top: 20px;
	    right: 10px;
	}
	.info_span{
	    float: right;
	    position: absolute;
	    right: 2px;
	    top: 12px;
	}
</style>
</head>
<body class="newbg">
 	<!-- header -->
 	<header class="mui-bar mui-bar-nav hnav">
		<a class="back" href="<?php echo U('User/index');?>"></a>
		<h1 class="mui-title">银行面签材料</h1>
	</header>
	<!-- header end-->

<div class="mui-content">
	<!-- paymoney -->
	<article class="tipinfo">
    <?php if(!empty($inf)): ?>您的信息已经审核！
        <?php else: ?>
        填写真实有效的信息，审核才会通过哦~<?php endif; ?>
	</article>
	<div class="mui-input-group regfrm" >

    	<div class="mui-input-row">
			<label>业务类型</label>
			<input type="text" id="ywlx" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["ywlx"]); ?>" placeholder="请选择业务类型" data-input-clear="2">
		</div>



			<input type="text" id="dai" value="<?php echo ($inff["dai"]); ?>" hidden>
			
			<input type="text" id="yinhang" value="<?php echo ($inff["yinhang"]); ?>" hidden>


    	<div class="mui-input-row">
			<label>贷款额度</label>
			<input type="text" id="dked" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["dked"]); ?>" placeholder="【业务类型为贷款】请输入申请额度" data-input-clear="2" style="right: 25px;position: absolute;">
			<span class="info_span">元</span>
		</div>
		

    	<div class="mui-input-row">
			<label>中文姓名</label>
			<input type="text" id="name" class="mui-input-clear mui-input nofocus" value="<?php echo ($inf["name"]); ?>" placeholder="请输入中文姓名" data-input-clear="2">
		</div>


    	<div class="mui-input-row">
			<label>英文姓名</label>
			<input type="text" id="eng" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["eng"]); ?>" placeholder="若有護照，請與護照相同" data-input-clear="2">
		</div>


    	<div class="mui-input-row">
			<label>身份證号</label>
			<input type="text" id="usercard" class="mui-input-clear mui-input nofocus" value="<?php echo ($inf["usercard"]); ?>" placeholder="请输入身份證号" data-input-clear="2">
		</div>


    	<div class="mui-input-row">
			<label>护照号</label>
			<input type="text" id="huzhao" class="mui-input-clear mui-input nofocus" value="<?php echo ($inf["huzhao"]); ?>" placeholder="请输入护照号" data-input-clear="2">
		</div>


    	<div class="mui-input-row">
			<label>婚姻狀況</label>
			<input type="text" id="feng" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["feng"]); ?>" placeholder="已婚,请在后面输入子女有几人" data-input-clear="2">
		</div>



        <div class="mui-input-row">
			<label>性别</label>
			<input type="text" id="sex" class="mui-input-clear mui-input nofocus" value="<?php echo ($inf["sex"]); ?>" placeholder="请选择性别" data-input-clear="2">
		</div>



		<div class="mui-input-row">
			<label>行动电话</label>
			<input type="text" id="user" class="mui-input-clear mui-input nofocus" value="<?php echo ($inf["user"]); ?>" placeholder="号码加区号" data-input-clear="2">
		</div>



    	<div class="mui-input-row">
			<label>E-Mail位址</label>
			<input type="text" id="email" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["email"]); ?>" placeholder="请输入E-Mail位址" data-input-clear="2">
		</div>


    	<div class="mui-input-row">
			<label>教育程度</label>
			<input type="text" id="jiaoyu" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["jiaoyu"]); ?>" placeholder="請選擇教育程度" data-input-clear="2">
		</div>



    	<div class="mui-input-row">
			<label>生日</label>
			<input type="text" id="shenri" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["shenri"]); ?>" placeholder="請输入年月日" data-input-clear="2">
		</div>


    	<div class="mui-input-row">
			<label>房地產</label>
			<input type="text" id="fangdichan" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["fangdichan"]); ?>" placeholder="請選擇房地產" data-input-clear="2">
		</div>


		<div class="mui-input-row">
			<label>戶籍地址</label>
		    <input id="dwaddess_more" type="text" value="<?php echo ($inf["dwaddess_more"]); ?>" class="mui-input-clear mui-input nofocus" placeholder="例：东北石油大学启智寝室楼2A608" data-input-clear="2">
		</div>

		<div class="mui-input-row">
			<label>公司名稱</label>
			<input type="text" id="dwname" class="mui-input-clear mui-input nofocus" value="<?php echo ($inf["dwname"]); ?>" placeholder="请输入公司名稱" data-input-clear="2">
		</div>

		<div class="mui-input-row">
			<label>公司電話</label>
			<input type="text" id="gsdhua" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["gsdhua"]); ?>" placeholder="号码加区号" data-input-clear="2">
		</div>


		<div class="mui-input-row">
			<label>職稱</label>
			<input id="position" value="<?php echo ($inf["position"]); ?>" type="text" class="mui-input-clear mui-input nofocus" placeholder="请输入職稱" data-input-clear="2">
		</div>


		<div class="mui-input-row">
			<label>職業類別</label>
			<input type="text" id="jyleibie" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["jyleibie"]); ?>" placeholder="请選擇職業類別" data-input-clear="2">
		</div>


		<div class="mui-input-row">
			<label>年薪</label>
			<input type="text" id="nianxing" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["nianxing"]); ?>" placeholder="请输入年薪" data-input-clear="2">
		</div>

		<div class="mui-input-row">
			<label>其他收入</label>
			<input type="text" id="qitashouru" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["qitashouru"]); ?>" placeholder="请输入其他收入" data-input-clear="2">
		</div>


		<div class="mui-input-row">
			<label>來源</label>
			<input type="text" id="laiyuan" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["laiyuan"]); ?>" placeholder="请输入來源" data-input-clear="2">
		</div>



		<div class="mui-input-row">
			<label>工作年龄</label>
			<input id="workyears" value="<?php echo ($inf["dwname"]); ?>" type="text" class="mui-input-clear mui-input nofocus" placeholder="请输入工作年龄" data-input-clear="2" style="right: 25px;position: absolute;">
			<span class="info_span">年</span>
		</div>

		<div class="mui-input-row">
			<label>单位地址</label>
			 <input id='showCityPicker2' name="showCityPicker2" data-input-clear="2" class="mui-input-clear mui-input inputblur" value="<?php echo ($inf["dwaddess_ssq"]); ?>" placeholder="请选择省市区"  type='text'>
		</div>


		<div class="mui-input-row">
			<label>月收入</label>
			<input id="dwysr" value="<?php echo ($inf["dwysr"]); ?>" type="text" class="mui-input-clear mui-input nofocus" placeholder="请输入现工作月收入" data-input-clear="2" style="right: 25px;position: absolute;">
			<span class="info_span">元</span>
		</div>

		<!--现居住地址-->
		<div class="mui-input-row">
			<label>现居住地址</label>
			 <input id='showCityPicker1' name="showCityPicker1" data-input-clear="2" class="mui-input-clear mui-input inputblur" value="<?php echo ($inf["addess_ssq"]); ?>" placeholder="请选择省市区"  type='text'>
		</div>
 

		<div class="mui-input-row">
			<label>存款帳號</label>
			<input type="text" id="cunkuan" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["cunkuan"]); ?>" placeholder="请输入" data-input-clear="2">
		</div>


		<div class="mui-input-row">
			<label>帳單寄送地址</label>
			<input type="text" id="youji" class="mui-input-clear mui-input nofocus" value="<?php echo ($inff["youji"]); ?>" placeholder="请输入" data-input-clear="2">
		</div>




	</div>
	<section class="msub" style="position: relative;">
		<button type="button" class="mui-btn mui-btn-danger mui-button-pay mui-button-gry" onclick="saveInfo();">下壹步</button>
		<!-- 提示 -->
		<div style="display: none;position: absolute;" class="errdeo" id="messageBox">
		</div>	
	</section>
</div>
<script src="__PUBLIC__/home/js/jquery.js"></script>
<script src="__PUBLIC__/home/js/stuCheck-ae09551939.js"></script>
<script src="__PUBLIC__/home/js/geihuaCom-1088667498.js"></script>

<script src="__PUBLIC__/home/js/mui.min.js"></script>

<script src="__PUBLIC__/home/js/mui-bd98b45634.picker.js"></script>
<script src="__PUBLIC__/home/js/mui-9fb36284ae.poppicker.js"></script>

<script src="__PUBLIC__/home/js/city-564994092a.data.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/home/js/city-67f8c196d0.data-3.js" type="text/javascript" charset="utf-8"></script>



<script>


$('#sel').change(function(){
	change('sel','sela')
});

$('.inputblur').click(function(){
	$(this).blur();
	$('.nofocus').blur();
});


var leixin = [

{
	value: "100",
	text: "银行卡",
	children: [
		{
			value: "1",
			text: "高雄银行",
			children: [
			]
		},
		{
			value: "2",
			text: "汇丰银行",
			children: [
				
			]
		},
		{
			value: "3",
			text: "华南银行",
			children: [
				
			]
		},
		{
			value: "4",
			text: "台湾银行",
			children: [
				
			]
		},
		{
			value: "5",
			text: "兆丰国际商业银行",
			children: [
				
			]
		},
		{
			value: "6",
			text: "彰化银行",
			children: [
				
			]
		}
	]
},


{
	value: "200",
	text: "贷款",
	children: [
		{
			value: "1",
			text: "高雄银行",
			children: [
				{
					value: "200001",
					text: "个人贷款"
				},
				{
					value: "200002",
					text: "企业贷款"
				}
			]
		},
		{
			value: "2",
			text: "汇丰银行",
			children: [
				{
					value: "200001",
					text: "个人贷款"
				},
				{
					value: "200002",
					text: "企业贷款"
				}
			]
		},
		{
			value: "3",
			text: "华南银行",
			children: [
				{
					value: "200001",
					text: "个人贷款"
				},
				{
					value: "200002",
					text: "企业贷款"
				}
			]
		},
		{
			value: "4",
			text: "台湾银行",
			children: [
				{
					value: "200001",
					text: "个人贷款"
				},
				{
					value: "200002",
					text: "企业贷款"
				}
			]
		},
		{
			value: "5",
			text: "兆丰国际商业银行",
			children: [
				{
					value: "200001",
					text: "个人贷款"
				},
				{
					value: "200002",
					text: "企业贷款"
				}
			]
		},
		{
			value: "6",
			text: "彰化银行",
			children: [
				{
					value: "200001",
					text: "个人贷款"
				},
				{
					value: "200002",
					text: "企业贷款"
				}
			]
		}
	]
}


];




(function($, doc) {



	$.init();

	$.ready(function() {




		var cityPicker2 = new $.PopPicker({
			layer: 3
		});

		cityPicker2.setData(cityData3);
		var showCityPickerButton2 = doc.getElementById('showCityPicker2');
		var showCityPickerButton1 = doc.getElementById('showCityPicker1');
		var youji = doc.getElementById('youji');

		showCityPickerButton2.addEventListener('tap', function(event) {
			var input = document.getElementsByClassName('nofocus');
			for (var i = 0; i < input.length; i++) {
				var _input = input[i];
				_input.blur();
			}
			cityPicker2.show(function(items) {
				if (typeof(items[2].text) == "undefined") { 
					showCityPickerButton2.value = (items[0] || {}).text + " " + (items[1] || {}).text;
				} else {
					showCityPickerButton2.value = (items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text;
				}
			});
		}, false);


		showCityPickerButton1.addEventListener('tap', function(event) {
			var input = document.getElementsByClassName('nofocus');
			for (var i = 0; i < input.length; i++) {
				var _input = input[i];
				_input.blur();
			}
			cityPicker2.show(function(items) {
				if (typeof(items[2].text) == "undefined") { 
					showCityPickerButton1.value = (items[0] || {}).text + " " + (items[1] || {}).text;
				} else {
					showCityPickerButton1.value = (items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text;
				}
			});
		}, false);


		youji.addEventListener('tap', function(event) {
			var input = document.getElementsByClassName('nofocus');
			for (var i = 0; i < input.length; i++) {
				var _input = input[i];
				_input.blur();
			}
			cityPicker2.show(function(items) {
				if (typeof(items[2].text) == "undefined") { 
					youji.value = (items[0] || {}).text + " " + (items[1] || {}).text;
				} else {
					youji.value = (items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text;
				}
			});
		}, false);





		/*业务类型*/
		var ywlx = new $.PopPicker({
			layer: 3
		});
		
		ywlx.setData(leixin);
		var ywlxs= doc.getElementById('ywlx');
		var dai= doc.getElementById('dai');
		var yinhang= doc.getElementById('yinhang');
		ywlxs.addEventListener('tap', function(event) {
			var input = document.getElementsByClassName('nofocus');
			for (var i = 0; i < input.length; i++) {
				var _input = input[i];
				_input.blur();
			}
			ywlx.show(function(items) {
				if (typeof(items[2].text) == "undefined") { 
					ywlxs.value = (items[0] || {}).text + " " + (items[1] || {}).text;
					dai.value = (items[0] || {}).value;
					yinhang.value = (items[1] || {}).value;
				} else {
					ywlxs.value = (items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text;
					dai.value = (items[0] || {}).value;
					yinhang.value = (items[1] || {}).value;
				}
			});
		}, false);

		/*业务类型*/



		/*职业类型*/
		var jyleibie= doc.getElementById('jyleibie');	
		var jyleibies = new $.PopPicker({
			layer: 1
		});

		jyleibies.setData([{value:"軍官、軍人",text:"軍官、軍人"},{value:"警察、員警",text:"警察、員警"},{value:"礦石土石採取業",text:"礦石土石採取業"},{value:"運輸倉儲通信業",text:"運輸倉儲通信業"},{value:"製造業",text:"製造業"},{value:"金融保險業",text:"金融保險業"},{value:"公共行政",text:"公共行政"},{value:"水電燃氣業",text:"水電燃氣業"},{value:"不動產出租賃業",text:"不動產出租賃業"},{value:"教育機構",text:"教育機構"},{value:"營造業",text:"營造業"},{value:"專業服務業",text:"專業服務業"},{value:"批發零售業",text:"批發零售業"},{value:"技術服務業",text:"技術服務業"},{value:"學生",text:"學生"},{value:"工商服務業",text:"工商服務業"},{value:"住宿餐飲業",text:"住宿餐飲業"},{value:"農林魚牧業",text:"農林魚牧業"},{value:"無業、家管、退休、其他",text:"無業、家管、退休、其他"}]);
			var jyleibie = doc.getElementById('jyleibie');
			jyleibie.addEventListener('tap', function(event) {
					jyleibies.show(function(items) {
						var tmpval = (items[0] || {}).text;
						setSex("jyleibie",tmpval);
					});
			}, false);

		/*职业类型*/













		/*婚姻狀況*/
		var feng= doc.getElementById('feng');	
		var fengs = new $.PopPicker({
			layer: 1
		});

		fengs.setData([{value:"未婚",text:"未婚"},{value:"已婚",text:"已婚"}]);
			var feng = doc.getElementById('feng');
			feng.addEventListener('tap', function(event) {
					fengs.show(function(items) {
						var tmpval = (items[0] || {}).text;
						setSex("feng",tmpval);
					});
			}, false);
		/*婚姻狀況*/



		
		/*性别*/
		var sex = doc.getElementById('sex');	
		var sexs = new $.PopPicker({
			layer: 1
		});

		sexs.setData([{value:"其他",text:"其他"},{value:"男",text:"男"},{value:"女",text:"女"}]);
			var sex = doc.getElementById('sex');
			sex.addEventListener('tap', function(event) {
					sexs.show(function(items) {
						var tmpval = (items[0] || {}).text;
						setSex("sex",tmpval);
					});
			}, false);
		/*性别*/

		/*学历*/
		var jiaoyu= doc.getElementById('jiaoyu');	
		var jiaoyus = new $.PopPicker({
			layer: 1
		});

		jiaoyus.setData([{value:"博士",text:"博士"},{value:"碩士",text:"碩士"},{value:"大學",text:"大學"},{value:"大專",text:"大專"},{value:"高中職",text:"高中職"},{value:"其他",text:"其他"}]);
			var jiaoyu = doc.getElementById('jiaoyu');
			jiaoyu.addEventListener('tap', function(event) {
					jiaoyus.show(function(items) {
						var tmpval = (items[0] || {}).text;
						setSex("jiaoyu",tmpval);
					});
			}, false);
		/*学历*/



		/*房地产*/
		var fangdichan= doc.getElementById('fangdichan');	
		var fangdichans = new $.PopPicker({
			layer: 1
		});

		fangdichans.setData([{value:"本人或配偶所有",text:"本人或配偶所有"},{value:"已抵押銀行",text:"已抵押銀行"},{value:"家族所有",text:"家族所有"},{value:"租賃",text:"租賃"},{value:"其他",text:"其他"}]);
			var fangdichan = doc.getElementById('fangdichan');
			fangdichan.addEventListener('tap', function(event) {
					fangdichans.show(function(items) {
						var tmpval = (items[0] || {}).text;
						setSex("fangdichan",tmpval);
					});
			}, false);
		/*房地产*/




	});
})(mui, document);


function setPerson(spanid,valname){
	$("input[name='"+spanid+"']").val(valname);
}

function setSex(spanid,valname){
	$("input[id='"+spanid+"']").val(valname);
}


















function showalert(msg){
	$("#messageBox").html(msg);
	$("#messageBox").show();
	setTimeout(function(){
		$("#messageBox").hide();
	},2000);
}



function checkval(val_){
	if(val_ == '' || val_ == null){
		return false;
	}else{
		return true;
	}
}





//保存资料
function saveInfo(){

	var name = $("#name").val();
	var ywlx = $("#ywlx").val();
	var dked = $("#dked").val();
	var gsdhua = $("#gsdhua").val();
	var jyleibie = $("#jyleibie").val();
	var fangdichan = $("#fangdichan").val();
	var shenri = $("#shenri").val();
	var user = $("#user").val();
	var eng = $("#eng").val();
	var qitashouru = $("#qitashouru").val();
	var nianxing = $("#nianxing").val();
	var email = $("#email").val();
	var jiaoyu = $("#jiaoyu").val();
	var usercard = $("#usercard").val();
	var feng = $("#feng").val();
	var huzhao = $("#huzhao").val();
	var dwname = $("#dwname").val();
	var dwaddess_ssq = $("#showCityPicker2").val();
	var dwaddess_more = $("#dwaddess_more").val();
	var workyears = $("#workyears").val();
	var dwphone = $("#dwphone").val();
	var dwysr = $("#dwysr").val();
	var laiyuan = $("#laiyuan").val();
	var youji = $("#youji").val();
	var cunkuan = $("#cunkuan").val();
	var addess_ssq = $("#showCityPicker1").val();
	var sex = $("#sex").val();

	var dai=$("#dai").val();
	var yinhang=$("#yinhang").val();

	if(checkval(dwname) && checkval(dwaddess_ssq) && checkval(dwaddess_more)  && checkval(workyears) && checkval(dwysr) && checkval(addess_ssq)  && checkval(sex)){
		$.post(
			"<?php echo U('Info/yinhangmianqianinfo');?>",
			{
				name:name,
				ywlx:ywlx,
				dked:dked,
				eng:eng,
				cunkuan:cunkuan,
				qitashouru:qitashouru,
				nianxing:nianxing,
				usercard:usercard,
				gsdhua:gsdhua,
				feng:feng,
				youji:youji,
				shenri:shenri,
				laiyuan:laiyuan,
				jyleibie:jyleibie,
				jiaoyu:jiaoyu,
				email:email,
				fangdichan:fangdichan,
				user:user,
				huzhao:huzhao,
				dwname:dwname,
				dwaddess_ssq:dwaddess_ssq,
				dwaddess_more:dwaddess_more,
				workyears:workyears,
				dwphone:dwphone,
				dwysr:dwysr,
				addess_ssq:addess_ssq,
				sex:sex,
				dai:dai,
				yinhang:yinhang
			},
			function (data,state){
				if(state != "success"){
					showalert("請求數據失敗,請重試!");
				}else if(data.status == 1){
					showalert("保存成功!");
					window.location.href = data.url;
				}else{
					showalert(data.msg);
				}
			}
		);
	}else{
		showalert("資料填寫不完整,請檢查!");
	}
}
</script>
<script src="__PUBLIC__/home/js/transform.js"></script>
<script type="text/JavaScript" language="JavaScript">  
var obj = document.body;  
function s22t(){   
obj.innerHTML=s2t(obj.innerHTML);   
}   
function t22s(){   
obj.innerHTML=t2s(obj.innerHTML);   
}  
s22t();
</script>  
</body>
</html>